package com.neusoft.tijian.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neusoft.tijian.mapper.HospitalMapper;
import com.neusoft.tijian.po.Hospital;
import com.neusoft.tijian.service.HospitalService;

@Service
public class HospitalServiceImpl implements HospitalService{

	@Autowired
	private HospitalMapper hospitalMapper;

	/**
	 * 获取医院列表
	 * @param state
	 * @return
	 */
	@Override
	public List<Hospital> listHospital(Integer state) {
		return hospitalMapper.listHospital(state);
	}

	/**
	 * 根据id，查询医院详情信息
	 * @param hpId
	 * @return
	 */
	@Override
	public Hospital getHospitalById(Integer hpId) {
		return hospitalMapper.getHospitalById(hpId);
	}
}
